package com.aerotechnic.service.interfaces;

import java.util.List;

import com.aerotechnic.entities.User;

public interface UserBoIn {
	
	int countAllUsers(); 
	
	List<User> find(int startIndex, int pageSize);
	
	void save(User myEntity);//before inserting make sure that the id is not duplicated if it's not save the object and return true otherwise restrict saving and return false
     
     void update(User myEntity);
     
     void delete(int id);

     User findByID(int id);
     
     List<User> findAll();
     
     User authenticate(String login, String password);

}
